<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!-- 关键字所搜结果 -->
<div class="data_list">
	<div class="date_list_title">
		<span class="glyphicon glyphicon-user" style="width:18px;"></span>
		搜索"&nbsp;<font>${query }</font>&nbsp;"的结果;(总共搜索到&nbsp;${resultTotal}&nbsp;条记录) 
	</div>
	<div class="datas search">
		<ul>
			<!-- 无结果 -->
			<c:choose>
				<c:when test="${resultTotal==0 }">
					<div align="center" style="padding-top: 20px;color:red">未查询到结果，请换个关键字试试看！</div>
				</c:when>
				<c:otherwise>
					<c:forEach items="${blogList }" var="i">
						<li style="margin-bottom:20px;">
							<!-- 查询结果标题 -->
							<span class="title">
								<a href="${pageContext.request.contextPath }/blog/articles/${i.id}.html">${i.title }</span></a>
							</span>
							<span class="summary">
								摘要:${i.content }...
							</span>
							<span class="link"><a href="${pageContext.request.contextPath}/blog/articles/${i.id}.html">http://Blog/blog/articles/${i.id}.html</a>&nbsp;&nbsp;&nbsp;&nbsp;</span>
						</li>
					</c:forEach>
				</c:otherwise>
			</c:choose>
		</ul>
	</div>
	<!-- 分页栏 -->
	${pageCode }
</div>